#include "qwebsocketserver.h"
#include "ui_qwebsocketserver.h"

MyWebsocketServer::MyWebsocketServer(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::MyWebsocketServer)
{
    ui->setupUi(this);
    setWindowTitle("WebSocket服务端");

//    webScoketServer= new MyWebsocketServer("Server",MyWebsocketServer::NonSecureMode);
//    connect(webScoketServer, SIGNAL(newConnection()), this, SLOT(onNewConnection()));
}

MyWebsocketServer::~MyWebsocketServer()
{
    delete ui;
}


void MyWebsocketServer::on_startListenBtn_clicked()
{
    if(ui->portLineEdit->text().isEmpty())
        return;

    int port = ui->portLineEdit->text().toInt();

}
